This event closes the import dialog. It has the following parameters:

The function corresponds to the OK-Button, which can be used instead of the event.

In "Xojo", the program for closing looks as follows:

Dim theEvent As AppleEvent
theEvent = NewAppleEvent( "IMPT", "CLOS", "HaBu")
If Not( theEvent.Send) Then
MsgBox "Der AppleEvent konnte nicht gesendet werden"
Else
If theEvent.ReplyBoolean Then
Ergebnis.Text = "Daten wurden verarbeitet"
Else
Ergebnis.Text = "Daten konnten nicht verarbeitet werden"
End If
End If

The second line ("NewAppleEvent") creates the event with the necessary parameters. The second parameter ("CLOS") informs "xHaBu" that the import dialog should be closed. Other values are not necessary. The return value ("ReplyBoolean") informs the sending program whether the import could be done successfully. Its status corresponds to the visibility of the OK-Button. As soon as the OK-Button can be pressed, it delivers "True".

After the data were imported for a list, the import dialog must be closed. Only after closing, you can import another list.